Skip to content

Instantly share code, notes, and snippets.

.agent-dummy.card
h3 agent ia
.agent-header.card
.agent-title
h3 agent ia
.agent-button
i.fa.fa-bars
.agent-menu.card
ul
li
@mberman84
mberman84 / all_files.md
Created February 24, 2026 21:09
Matt's Markdown Files

OpenClaw: System Prompt File Templates

Generalized versions of all root .md files used by OpenClaw. These files are loaded into the agent's system prompt on every request (except MEMORY.md which is conditional).

Copy these as starting points and customize for your own setup. Replace <placeholders> with your values.


AGENTS.md

@mberman84
mberman84 / prompts.md
Last active March 4, 2026 00:33
Prompts

OpenClaw: Extracted Prompts (Generalized)

22 copy/paste-ready prompts for building your own AI agent system. Each prompt builds a functional system or implements a proven best practice you can hand to an AI coding assistant.

Replace placeholders like <your-workspace>, <your-messaging-platform>, and <your-model> with your own values.


1. Personal CRM

@dabit3
dabit3 / claude-agent-tutorial.md
Last active March 4, 2026 00:31
The Complete Guide to Building Agents with the Anthropic Agent SDK

Building AI agents with the Claude Agent SDK

If you've used Claude Code, you've seen what an AI agent can actually do—read files, run commands, edit code, figure out the steps to accomplish a task.

And you know it doesn't just help you write code, it takes ownership of problems and works through them the way a thoughtful engineer would.

The Claude Agent SDK is the same engine, yours to point at whatever problem you want, so you can easily build agents of your own.

The Claude Agent SDK is how you build that same thing into your own applications.

"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@wallanpsantos
wallanpsantos / GEMINI.md
Last active March 4, 2026 00:20
Gemini CLI — System Instructions for Java/Spring Boot projects (Hexagonal + Clean Architecture) — ALWAYS respond in Brazilian Portuguese (pt-BR)

System Instructions

You are Gemini CLI Assistant. You must ALWAYS respond in Brazilian Portuguese (pt-BR), regardless of the language used in the user's question.

Language Rules:

  • All responses must be in Portuguese (pt-BR)
  • Technical terms can be kept in English when appropriate
  • Code and commands remain in their original language
  • Documentation and explanations must be in Portuguese
@yvesh
yvesh / config
Created February 2, 2026 22:30
CachyOS LXC Container for sway, hyprland or xorg with DRI, render, Sound, Input etc.
# Full working Arch Linux / CachyOS LXC container for Sway (Hyprland or any other Wayland window manager works too) with full performance
# Audio, libinput etc.. a lot of workarounds for wayland (XDG_RUNTIME_DIR.. etc.)
# Runs stable, you can tweak security further.
# For CachyOs start with the Archlinux LXC Template and "migrate" with the scripts to CachyOS.
# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --dist archlinux --release current --arch amd64
# Template script checksum (SHA-1): 218ccdcaa38e3f62e3a17f53b119f34e1e57ea67
# For additional config options, please look at lxc.container.conf(5)
@VictorTaelin
VictorTaelin / foo.ts
Last active March 4, 2026 00:18
quick work
// LamBit.ts
// =========
// A minimal linear functional language with binary pattern matching.
//
// Func ::=
// | Mat ::= "λ" "{" "0" ":" Func ";" "1" ":" Func ";" "}"
// | Lam ::= "λ" Name "." Func
// | Ret ::= Term
//
// Term ::=
@ArcaneNibble
ArcaneNibble / notes.md
Created April 5, 2024 21:59
QingKe RISC-V XW opcode encoding

WCH QingKe RISC-V XW extension opcode encoding

This has been reverse engineered from the toolchain only and has not been tested on hardware.

The c.lbu, c.lhu, c.sb, and c.sh opcodes replace some standard opcodes (that the QingKe cores do not implement, as the replaced opcodes require the D extension), and they also appear to be compatible with "Huawei" extensions mentioned here.

The c.lbusp, c.lhusp, c.sbsp, and c.shsp opcodes exist in a "reserved" opcode block.

001 uimm[0] uimm[4:3] rs1` uimm[2:1] rd`  00			c.lbu		(replacing c.fld)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Fizzbuzz</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
body {